<%@page language="java" contentType="text/html; character=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>首页</title>
    <link type="text/css" rel="stylesheet" href="${ctx}/resources/user/css/style.css">
    <script src="${ctx}/resources/user/js/jquery-1.8.3.min.js"></script>
    <script src="${ctx}/resources/user/js/jquery.luara.0.0.1.min.js"></script>
</head>
<body>
<div class="width100 hidden_yh" style="border-top: 1px solid #ddd">
    <div class="width1200 hidden_yh center_yh" style="margin-top: 75px">
        <form action="#" method="post" enctype="multipart/form-data" id="resForm">
            <div class="center_yh hidden_yh" style="width: 475px;margin-bottom: 40px;">
                <span style="margin-right: 40px;height: 42px;line-height: 42px;width: 100px;" class="left_yh block_yh tright">用户名：</span>
                <input type="text" name="sellerName" placeholder="请输入您的用户名" style="border:1px solid #c9c9c9;width: 292px;height: 42px;font-size: 16px;text-indent: 22px;" class="left_yh">
            </div>
            <div class="center_yh hidden_yh" style="width: 475px;margin-bottom: 40px;">
                <span style="margin-right: 40px;height: 42px;line-height: 42px;width: 100px;" class="left_yh block_yh tright">设置密码：</span>
                <input type="text" name="sellerPassword" placeholder="建议至少使用两种字符组合" style="border:1px solid #c9c9c9;width: 292px;height: 42px;font-size: 16px;text-indent: 22px;" class="left_yh">
            </div>
            <div class="center_yh hidden_yh" style="width: 475px;margin-bottom: 40px;">
                <span style="margin-right: 40px;height: 42px;line-height: 42px;width: 100px;" class="left_yh block_yh tright">手机号：</span>
                <input type="text" name="sellerPhone" placeholder="建议使用常用的手机" style="border:1px solid #c9c9c9;width: 292px;height: 42px;font-size: 16px;text-indent: 22px;" class="left_yh">
            </div>
            <div class="center_yh hidden_yh" style="width: 475px;margin-bottom: 40px;">
                <span style="margin-right: 40px;height: 42px;line-height: 42px;width: 100px;" class="left_yh block_yh tright">电子邮箱：</span>
                <input type="text" name="sellerEmail" placeholder="请输入邮箱" style="border:1px solid #c9c9c9;width: 292px;height: 42px;font-size: 16px;text-indent: 22px;" class="left_yh">
            </div>

            <div class="center_yh hidden_yh" style="width: 563px;margin-bottom: 40px;">
                <span style="margin-right: 40px;height: 42px;line-height: 42px;width: 144px;" class="left_yh block_yh tright">请输入您的身份证：</span>
                <input type="text" name="idCard" placeholder="请输入您的身份证" style="border:1px solid #c9c9c9;width: 292px;height: 42px;font-size: 16px;text-indent: 22px;" class="left_yh">
                <font style="color: red;font-size: 10px;">请仔细核对，提交后无法改动</font>	
            </div>
            
            
            
             <div class="center_yh hidden_yh" style="width: 563px;margin-bottom: 40px;">
                <span style="margin-right: 40px;height: 42px;line-height: 42px;width: 144px;" class="left_yh block_yh tright">请上传营业执照：</span>
                <input id="file" type="file" name="file" placeholder="请上传营业执照" style="width: 292px;height: 42px;font-size: 16px;text-indent: 22px;" class="left_yh">
            	<font style="color: red;font-size: 10px;">请上传真实信息</font>	
            </div>

            <p class="font14 c_66" style="text-indent: 500px;margin-top: 30px;">
                <!-- <input type="checkbox"> -->提交后默认同意<a href="#" class="red">《会员注册协议》</a>和<a href="#" class="red">《隐私保护政策》</a>
            </p>
            <input onclick="res();" type="button" value="提交" class="ipt_tj" style="width: 295px;height: 44px;margin-left: 500px;">
        </form>
    </div>
</div>
<%@include file="/common/ufooter.jsp"%>
</body>

<script type="text/javascript">
function res(){
	let formData = new FormData($("#resForm")[0]);
	formData.append('file',document.getElementById("file").files[0]);
	$.ajax({
		type:"post",
		url:"${ctx}/seller/toSRes",
		data:formData,
		ache:false,    //取消浏览器缓存
        processData:false,    //取消啥来着
        contentType:false,    //取消默认json转化
		success:function(data){
			console.log(data);
			if(data.code === 0){
				window.location.href="slogin";
			}else{
				alert(data.msg);
			}
		}
	});
}
</script>
</html>



















